package com.kh.shj.controller;

import com.kh.shj.service.IClassifyService;
import com.kh.shj.vo.ClassifyTreeVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/classify")
public class ClassifyController {


    @Resource
    private IClassifyService classifyService;



    @GetMapping("/treeData")
    public List<ClassifyTreeVO> listByTree(){
        return classifyService.listClassifyWithTree();
    }


}
